package io;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 苏西西
 * Date: 2023-10-13
 * Time: 22:19
 */
public class IOD7 {
    //进行写文件
    public static void main(String[] args) throws IOException {

        try(OutputStream outputStream = new FileOutputStream("f:/test.txt",true)) {
            outputStream.write(97);
            outputStream.write(98);
            outputStream.write(97);
            outputStream.write(98);
        }

    }
}
